Skip to content

Customize type-list test names - #3243

Open
piece-of-tart wants to merge 2 commits into
catchorg:develfrom
piece-of-tart:feature/template-list-test-case-method-type-names
Open

piece-of-tart wants to merge 2 commits into
catchorg:develfrom
piece-of-tart:feature/template-list-test-case-method-type-names

Conversation

@piece-of-tart

Copy link
Copy Markdown

Description

Add CATCH_CONFIG_TEMPLATE_LIST_TEST_CASE_SUFFIX(Type, ListName, Index) to TEMPLATE_LIST_TEST_CASE and TEMPLATE_LIST_TEST_CASE_METHOD. This lets users keep a reusable type list and register descriptive names such as Arithmetic - int and Arithmetic - double. The default suffix is <list name> - <index>.

Document the hook and test exact registered names, repeated types distinguished by index, and exceptions reported during startup. All 149 CTest tests passed.

GitHub Issues

Related to #2542.

Add a suffix hook for both type-list test macros. Document it and cover custom names and startup errors.
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.66%. Comparing base (36c1bc3) to head (9f988df).

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3243      +/-   ##
==========================================
+ Coverage   91.43%   91.66%   +0.23%     
==========================================
  Files         205      205              
  Lines        9108     9110       +2     
==========================================
+ Hits         8327     8350      +23     
+ Misses        781      760      -21     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Run the throwing suffix test from the basic CTest suite so AppVeyor collects its startup coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant